package com.huazi.eduservice.vo;

import com.huazi.eduservice.entity.EduVideo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-03-24 11:58
 */
public class DeleteVodUtils {
    //获取多个视频id的字符串
    public static String getStringIds(List<EduVideo> list){
        List<String> list1=new ArrayList<>();
        for (EduVideo vod: list
        ) {
            if(vod.getVideoSourceId()!=null)
            list1.add(vod.getVideoSourceId());
        }
        String ids= org.apache.commons.lang3.StringUtils.join(list1.toArray(),",");
        return ids;
    }
}
